﻿{config_load file=global.conf}
{config_load file="_form_auth.conf" section="`$lang`"}


<script language="JavaScript" src="{#scripts_dir#}/fValidate/fValidate.config.js" ></script>
<script language="JavaScript" src="{#scripts_dir#}/fValidate/fValidate.core.js" ></script>
<script language="JavaScript" src="{#scripts_dir#}/fValidate/fValidate.validators.js" ></script>

<link href="{#styles_dir#}/form.css" rel="stylesheet" type="text/css">
<link href="{#styles_dir#}/main.css" rel="stylesheet" type="text/css">
       {if 1==$Staff->ErrorNo() }
            {if !$smarty.get.cap}
				<p>{#_form_auth__msgStaffErr1Begin#}{*To get access to the real-time Forex market forecasts, *} <a href="/{$lang}/free-trial.html">{#_form_auth__msgStaffErr1Link#}{*sign up*}</a> {#_form_auth__msgStaffErr1End#} {*for the free trial.*}</p>
			{else}
				<p>{#_form_auth__msgStaffErr2#}{*To proceed with the IntelliForex subscription, please sign in using the form below. After successful login you will be redirected to the subscription page.*}</p>
			{/if}
        {elseif 2==$Staff->ErrorNo() }
            <p><span style="color: #c00; font-weight: bold">{#_form_auth__msgCheckEmailPassword#}</span>{*Please check the e-mail and password specified.*}</p>
        {/if}

<form method="post" enctype="multipart/form-data"  onSubmit="return validateForm( this, 1, 0, 0, 1, 16); "  >
<input type="Hidden" name="_usrLogin" value = "1">
<table class="form" width="350" height="98" border="0" cellpadding="0" cellspacing="0">
<tr><td width="10" height="10"></td></tr>
<tr>
	<td width="10"></td>
	<td>
	<table width="100%" border="0" cellpadding="0" cellspacing="0">
	<tr>
		<td><div align="right"><label for="auth_login">{#_form_auth__labelEmail#}{*E-mail:*}</label></div></td>
		<td width="5"></td>
		<td width="200"><input class="input" type="text" name="auth_login" value="{if $smarty.request.auth_login}{$smarty.request.auth_login}{else}{$Staff->clogin}{/if}" alt="blank"
				emsg="Login can't be empty"
				onFocus="javascript: input_focus(this);" onBlur="javascript: input_blur(this);"
                size="15" height="14" input="input" /></td>
	</tr>
	<tr><td height="5"></td></tr>

	<tr>
		<td><div align="right"><label for="auth_password">{#_form_auth__labelPassword#}{*Password:*}</label></div></td>
		<td width="5"></td>
		<td width="200"><input class="input" type="password" name="auth_password" value="{$Staff->cpassword}"
				onFocus="javascript: input_focus(this);" onBlur="javascript: input_blur(this);"
                size="15" height="14" input="input" /></td>
	</tr>
	<tr><td height="5"></td></tr>
    <tr>
		<td>&nbsp;</td>
		<td width="5" colspan="2"><nobr><img src="{#images_dir#}/spacer.gif" width="1" /><input class="checkbox" type="checkbox" name="auth_rememmberme" value="1" input="checkbox" />
		<label for="auth_rememmberme">{#_form_auth__rememberme#}{*Remember me for 2 weeks*}</label></nobr></td>
	</tr>
	<tr><td height="5"></td></tr>

	<tr>
		<td colspan="3" align="right"><input class="button" style="width: 110px" type="submit" name="Submit" value="{#_form_auth__submitTitle#}{*Sign In*}"></td>
	</tr>
	<tr><td height="5"></td></tr>
	<tr>
		<td colspan="3" align="right">
			<a href="/{$lang}/remind-password.html{*contacts&body=I forgot my password!*}" class="def_link_12">{#_form_auth__forgot#}{*forgot your password?*}</a><br>
			<a href="/{$lang}/rates.html" class="def_link_12">{#_form_auth__registration#}{*registration*}</a>
		</td>
	</tr>
	</table></td>
    <td width="30"></td>
</tr>
<tr>
	<td colspan="3" height="10"></td>
</tr>
</table>
</form>

            {if $smarty.get.cap}
				<p>{#_form_auth__msgLastBegin#}{*If you don't have the IntelliForex account credentials, please*} <a href="/{$lang}/free-trial.html">{#_form_auth__msgLastLink#}{*sign up*}</a>  {#_form_auth__msgLastEnd#}{*for the free 14-Day trial.*}</p>
			{/if}
